-- GENERATED SPELL FOR [Hatefury Rogue] --


function spell0_4670(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4670', 580, 1)
end

function spell1_4670(pUnit, Event) --@Hide,Self--
pUnit:FullCastSpellOnTarget(6920,pUnit)
pUnit:RegisterEvent('Sorts_4670', 672, 1)
end

function Sorts_4670(pUnit, Event)
local choix_sorts_4670 = math.random(0, 1)
if choix_sorts_4670 == 0 then
pUnit:RegisterEvent('spell0_4670', 1, 1)
end
if choix_sorts_4670 == 1 then
pUnit:RegisterEvent('spell1_4670', 1, 1)
end
end

function mob4670_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4670', math.random(1500, 3000), 1)
end

function mob4670_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4670_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4670_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4670, 1, 'mob4670_Action')
RegisterUnitEvent(4670, 2, 'mob4670_Leave')
RegisterUnitEvent(4670, 3, 'mob4670_Kill')
RegisterUnitEvent(4670, 4, 'mob4670_Die')
